import { savePost } from "@/api/szpt/savePost.js";

export function saveUserPost(postData) {
  let flag = true;
  savePost(postData)
    .then((resp) => {
      if (resp.code == 200) {
        console.log("222222", flag);
      } else {
        flag = !flag;
        console.log("333333", flag);
      }
      return flag;
    })
    .catch((err) => {
      console.log(err);
    });
}
